package com.SoilMM.service.impl;

import com.SoilMM.entity.GtimeMonitEntity;
import com.SoilMM.entity.RtimeMonitEntity;
import com.SoilMM.mapper.GtimeMonitMapper;
import com.SoilMM.service.GtimeMonitService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Gramorgan
 * @since 2021-06-23
 */
@Service
public class GtimeMonitServiceImpl extends ServiceImpl<GtimeMonitMapper, GtimeMonitEntity> implements GtimeMonitService {

    @Override
    public GtimeMonitEntity showRtimeData(String time) {
        QueryWrapper<GtimeMonitEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("gt_minute",time);
        GtimeMonitEntity gtimeMonitEntity = baseMapper.selectOne(queryWrapper);

        return gtimeMonitEntity;
    }
}
